import Mock from "mockjs"

const data=Mock.mock({
    "list":{
        "icons|5":[{
            "img":"@image(50x50,@color)",
            "tit":"@cword(2,3)",
            "id":"@id"
        }],
        "big|3":[{
            "img":"@image(100x100,@color)",
            "tit":"@cword(3)",
            "id":"@id"
        }],
        "small|20-30":[{
            "img":"@image(100x100,@color)",
            "tit":"@cword(3)",
            "id":"@id"
        }]
    }
})

Mock.mock('/api/list','post',()=>{
    return({
        code:200,
        data:data.list.icons
    })
})
Mock.mock('/api/big','post',()=>{
    return({
        code:200,
        data:data.list.big
    })
})
Mock.mock('/api/small','post',()=>{
    return({
        code:200,
        data:data.list.small
    })
})